import http from "../utils/require";


//请求首页数据api
export const getData = () => {
    return http.get('/home/getData')
}

//请求用户列表数据
export const getList = (params) => {
    return http.get('/user/getList', params)
}

//新增用户
export const addUser = (data) => {
    return http.post('/user/add', data)
}

//修改用户
export const editUser = (data) => {
    return http.post('/user/edit', data)
}

//删除用户
export const delUser = (data) => {
    return http.post('/user/del', data)
}

